#include "Solution0902.h"
#include "Solution0909.h"
#include "Solution0916.h"
#include "Solution0923.h"
#include "Solution0930.h"
#include "Solution1014.h"

#include <iostream>
#include <array>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <unordered_map>

typedef long long ll;

using namespace std;

int plusBack(int &a) {
    int t = a;
    a = a + 1;
    return t;
}

int plusPre(int &a) {
    a = a + 1;
    return a;
}

int main() {
//    Solution1014::M_Q2545();

    int a = 0;
    a = (a++) % 3;
    cout << a << endl;

    a = 0;
    a = (plusBack(a)) % 3;
    cout << a << endl;

    a = 0;
    a = (++a) % 3;
    cout << a << endl;

    a = 0;
    a = (plusPre(a)) % 3;
    cout << a << endl;
    return 0;


}
